﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations; 

namespace com.iot.ht.Controllers.htsql.data
{
    [Schema(Name = "SQl分组", Description = "")]     
    public class HtSqlGroup : BaseEntity
    { 
        [Comment("名称")]
        [Schema(Name = "名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";

 
        [Comment("类型")]
        [Schema(Name = "类型", Description = "MySql SqlServer SqlLite")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Lx { get; set; } = "";//



        [Comment("连接字符串")]
        [Schema(Name = "连接字符串", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(200)]
        public string ConnString{ get; set; } = "";//



        [Comment("备注")]
        [Schema(Name = "备注", Description = "")] 
        [MaxLength(400)]
        public string Memo { get; set; } = "";
         

        [Comment("排序号")]
        [Schema(Name = "排序号", Description = "")]
        public long Sortno { get; set; } = 3;



        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("创建人编号")]
        [Schema(Name = "创建人编号", Description = "")]
        public long CrtUid { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long CrtDid { get; set; }


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("修改人编号")]
        [Schema(Name = "修改人编号", Description = "")]
        public long EdtUid { get; set; }


        [Comment("Gid")]
        [Schema(Name = "Gid", Description = "")]
        public Guid Gid { get; set; }


        [Comment("删除标志")]
        [Schema(Name = "删除标志", Description = "")]
        public bool Deleted { get; set; }

    }
}
